﻿//var s=document.createElement('script');s.type='text/javascript';s.src='https://princescans-js.googlecode.com/svn/trunk/gGthingless.js';document.body.appendChild(s);

var blacklily = {};

blacklily.div = document.createElement('div');
blacklily.div.style.height='223px';
blacklily.div.style.backgroundColor='transparent';
blacklily.div.style.position='absolute';
blacklily.div.style.width='960px';
blacklily.div.style.marginLeft='-480px';
blacklily.div.style.zIndex= '1000000';
blacklily.div.style.top='0';
blacklily.div.style.left='49.3%';
blacklily.div.style='background: none repeat scroll 0% 0% transparent; position: absolute; height: 100px; top: 0pt; left: 50%; width: 960px; margin-left: -490px; z-index: 1000000;'
blacklily.div.style.textAlign="center";
blacklily.div.innerHTML='<a href="http://www.princescans.com"><img src="http://princescans.files.wordpress.com/2013/12/melo_holic_c09-01.png"alt="PrinceScans" style="margin-top: 495px;"/><img src="http://princescans.files.wordpress.com/2013/12/melo_holic_c09-03.png"alt="PrinceScans" style="margin-top: 375px;"/><img src="http://princescans.files.wordpress.com/2013/12/melo_holic_c09-04.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/12/melo_holic_c09-06.png"alt="PrinceScans" style="margin-top: 375px;"/><img src="http://princescans.files.wordpress.com/2013/12/melo_holic_c09-071.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/12/melo_holic_c09-08.png"alt="PrinceScans" style="margin-top: 00px;"/></a>';


blacklily.addBubble = function(t,x1,y1,x2,y2,tc,bc) {
	bubble=document.createElement('div');
	bubble.style.position='absolute';
	bubble.style.top=y1+'px';
	bubble.style.left=x1+'px';
	if (typeof x2 == 'number' || x2.indexOf('%') == -1) { //dne
		bubble.style.width=x2+'px';
	} else { bubble.style.width=x2 }
	if (typeof y2 == 'number' || y2.indexOf('%') == -1) { //dne
		bubble.style.height=y2+'px';
	} else { bubble.style.height=y2 }
	bubble.style.display='table';
	
	innerBubble=document.createElement('div');
	innerBubble.style.color=tc;
	innerBubble.style.backgroundColor=bc;
	innerBubble.style.verticalAlign='middle';
	innerBubble.style.display='table-cell';
	innerBubble.style.textAlign='center';
	innerBubble.style.padding="10px";
	
	innerBubble.innerHTML=t
	bubble.appendChild(innerBubble);
	
	blacklily.div.appendChild(bubble);
}
document.body.appendChild(blacklily.div);

blacklily.addBubble('Trad: Luz | Rev: BlackLily', 221,353,200,50,'black','transparent');
